<?php use_stylesheets_for_form($form) ?>
<?php use_javascripts_for_form($form) ?>

<form action="<?php echo url_for('attendance/'.($form->getObject()->isNew() ? 'create' : 'update').(!$form->getObject()->isNew() ? '?attendanceid='.$form->getObject()->getAttendanceid() : '')) ?>" method="post" <?php $form->isMultipart() and print 'enctype="multipart/form-data" ' ?>>
<?php if (!$form->getObject()->isNew()): ?>
<input type="hidden" name="sf_method" value="put" />
<?php endif; ?>
  <table>
    <tfoot>
      <tr class="style3">
        <td colspan="2" style="border-top:solid 1px #EDEDED; border-bottom:solid 1px #C7C7C7;">&nbsp;
          <input type="submit" value="Punch <?php echo ($type?'In':'Out'); ?>" />
        </td>
      </tr>
    </tfoot>
    <tbody>
      <div class="style3"><strong>
      <?php 	  
	  echo "&nbsp;&nbsp;Punch ". ($type?'In':'Out'). ' Time: ';
	  ?></strong><?php
	  echo $form;
	  ?>
      </div>
    </tbody>
  </table>
</form>